<!DOCTYPE html>

<html>
    <head>
        <title>#{get 'title' /}</title>
        <meta charset="utf-8">
        <link rel="stylesheet" media="screen" href="@{'/public/stylesheets/temaPrincipal.css'}">
        #{get 'moreStyles' /}
        <link rel="shortcut icon" type="image/png" href="@{'/public/images/favicon.png'}">
        <script src="@{'/public/javascripts/jquery-1.5.2.min.js'}" type="text/javascript" charset="utf-8"></script>
        <script src="@{'/public/javascripts/jquery.meio.mask.js'}" type="text/javascript" charset="utf-8" ></script>
        <script src="@{'/public/javascripts/calendar.js'}" type="text/javascript" charset="utf-8"></script>
        <script src="@{'/public/javascripts/view.js'}" type="text/javascript" charset="utf-8"></script>
        #{get 'moreScripts' /}
        
        <script type="text/javascript" >
			(function($){
			// call setMask function on the document.ready event
		
			$(function(){
				$('input:text').setMask();
			});	
		})(jQuery);
	</script>
    </head>
    <body>
    	<div id="geral">
	   		<div id="cabecalho">	   			
	   			<img src="@{'/public/images/topo.jpg'}">
	   		</div>		
	   		  
			 %{
				nome = session.get("nome");	
			  	
			   if(nome!=null){
			}%
	   		<div class="menu">
				<ul>
				<li><a id="current" href="" target="_self" >Usuários</a>
				<ul>
				<li><a href="@{Usuarios.formCadastroUsuario()}" target="_self">Cadastrar</a></li>
				<li><a href="@{Usuarios.buscarUsuarios()}" target="_self">Gerenciar</a></li>
				</ul>
				</li>
				<li><a href="" target="_self" >Professores</a>
				<ul>
				<li><a href="@{Professores.formCadastroProfessor()}" target="_self">Cadastrar</a></li>
				<li><a href="@{Professores.buscarProfessores()}" target="_self">Gerenciar</a></li>
				</ul>
				</li>
				<li><a href="" target="_self" >Cursos</a>
				<ul>
				<li><a href="@{Cursos.cadastrarCursos()}" target="_self">Cadastrar</a></li>
				<li><a href="@{Cursos.listagemCursos()}" target="_self">Gerenciar</a></li>				
				</ul>
				</li>
				<li><a href="" target="_self" >Semestre</a>
				<ul>
				<li><a href="@{Semestres.formAbrirSemestre()}" target="_self">Abrir Semestre</a></li>
				<li><a href="@{Semestres.formCadastrarTurma()}" target="_self">Ativar Turmas	</a></li>
				<li><a href="" target="_self">Cadastrar Nova Turma </a></li>
				<li><a href="" target="_self">Visualizar Turmas</a></li>
				<li><a href="" target="_self">Gerenciar Sorteio</a></li>
				</ul>
				</li>
				<li><a href="" target="_self" >Alunos</a>
				<ul>
				<li><a href="@{Alunos.formCadastroAluno()}" target="_self">Cadastrar Aluno</a></li>
				<li><a href="@{Alunos.buscarAlunos()}" target="_self">Buscar Aluno </a></li>
				<li><a href="" target="_self">Buscar Pré-Inscrito</a></li>
				<li><a href="" target="_self">Transferir Aluno(s)</a></li>				
				</ul>
				</li>				
				</ul>
				<div id="sair">
					<i>Bem Vindo, ${nome} ! </i><a href="@{Application.logout()}" target="_self" style="text-decoration: underline;">Sair</a>
				</div>				
			</div>
			 %{ } }%
	   		<div id="corpo">
	   		            
            #{if flash.success}
                <div style="text-align: center">                
                    <strong style="color: red">${flash.success}</strong>
                </div>
            #{/if}
             #{if flash.error}
                <div style="text-align: center">                
                    <strong style="color: red">${flash.error}</strong>
                </div>
            #{/if}
        		#{doLayout /}
        	</div>
        	<div id="rodape">
	   			Desenvolvido por <b><i>CompSolution</i></b> ®<br/>
	   		</div>
   		</div>
    </body>
</html>
